package com.spt.springbootzhsx.service;

import com.spt.springbootzhsx.entity.Vip;
import com.spt.springbootzhsx.mapper.VipMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class VipImpl implements VipService{
    @Autowired
    private VipMapper vipMapper;

    @Override
    public String getVipByUid_UseFul(Integer uid) {
        ArrayList<Vip> list=vipMapper.getVipByUidAndVstate(uid,"未过期");
        if(list.size()>0){
            return "YES";
        }else{
            return "NO";
        }
    }
}
